package com.lhkj.ct.meta.modules.gauge.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.lhkj.ct.base.mybatis.extension.service.impl.BatchHandleServiceImpl;
import com.lhkj.ct.meta.modules.gauge.model.entity.TblScaleItemRelation;
import com.lhkj.ct.meta.modules.gauge.mapper.ScaleItemRelationMapper;
import com.lhkj.ct.meta.modules.gauge.service.ScaleItemRelationService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 项目量表关联 服务实现类
 * </p>
 *
 * @author jobob
 * @since 2023-11-02
 */
@Service
public class ScaleItemRelationServiceImpl extends BatchHandleServiceImpl<ScaleItemRelationMapper, TblScaleItemRelation> implements ScaleItemRelationService {

    @Override
    public void deleteByScaleId(String scaleId) {
        getBaseMapper().delete(new LambdaQueryWrapper<TblScaleItemRelation>()
                .eq(TblScaleItemRelation::getScaleId, scaleId));
    }

    @Override
    public List<String> selectByScaleId(String scaleId) {
        return getBaseMapper().selectByScaleId(scaleId);
    }
}
